/scoreboard players set @TeamCryus sidebarIngame -8

/scoreboard teams join sidebar7 s§7

/scoreboard players set s§5 sidebarIngame -4

/scoreboard players reset @a[tag=!ON] sidebarIngame

/scoreboard players set @a[tag=ON] sidebarIngame -2

/effect @a minecraft:fire_resistance 9999 255 true

/execute @a[m=2] ~ ~ ~ detect ~ ~ ~ minecraft:lava 0 effect @p slowness 1 1 true

/scoreboard players reset §nPotato-Heat sidebarIngame

§§§§§§§§§§§§§§§§§§§§§§§§§§§§§

/scoreboard players add @a potatoTransfer 0

/scoreboard players add @a forcedOn 0

/scoreboard players add @a powerupCollected 0

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@a"},{"text":" collected the ","color":"white"},{"text":"No Knockback","color":"yellow"},{" powerup.","color":"white"}]

setblock ~1 ~ ~ diamond_block

/fill 22 9 28 31 4 28 minecraft:diamond_block

/fill 22 4 28 31 4 28 redstone_block

""

scoreboard players set §f§lCHILLED sidebarIngame -6

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset §7§o(unreleased) sidebarIngame

scoreboard players reset §7§oEXPLODED sidebarIngame

setblock ~1 ~ ~ diamond_block

/fill 22 9 28 31 4 28 minecraft:diamond_block

/fill 22 5 28 31 5 28 redstone_block

""

scoreboard players set §7§lWARM sidebarIngame -6

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset §7§o(unreleased) sidebarIngame

scoreboard players reset §7§oEXPLODED sidebarIngame

setblock ~1 ~ ~ diamond_block

/fill 22 9 28 31 4 28 minecraft:diamond_block

/fill 22 6 28 31 6 28 redstone_block

""

scoreboard players set §e§lWARMER sidebarIngame -6

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset §7§o(unreleased) sidebarIngame

scoreboard players reset §7§oEXPLODED sidebarIngame

setblock ~1 ~ ~ diamond_block

/fill 22 9 28 31 4 28 minecraft:diamond_block

/fill 22 7 28 31 7 28 redstone_block

""

scoreboard players set §6§lHOT sidebarIngame -6

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset §7§o(unreleased) sidebarIngame

scoreboard players reset §7§oEXPLODED sidebarIngame

setblock ~1 ~ ~ diamond_block

/fill 22 9 28 31 4 28 minecraft:diamond_block

/fill 22 8 28 31 8 28 redstone_block

""

scoreboard players set s§7 sidebarIngame -6

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset §7§o(unreleased) sidebarIngame

scoreboard players reset §7§oEXPLODED sidebarIngame

setblock ~1 ~ ~ diamond_block

/fill 22 9 28 31 4 28 minecraft:diamond_block

/fill 22 9 28 31 9 28 redstone_block

""

scoreboard players set s§6 sidebarIngame -6

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset §7§o(unreleased) sidebarIngame

scoreboard players reset §7§oEXPLODED sidebarIngame

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@a",{"text":" has recieved the potato.","color":"white"}]

/scoreboard players test mainGame mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

setblock ~ ~ ~-1 minecraft:diamond_block

/spreadplayers 204 26 10 15 false @e[tag=powerup_new]

tp @e[tag=powerup_new] ~ ~ ~-68

/scoreboard players tag @e[tag=powerup_new] remove powerup_new

""

setblock ~ ~ ~1 end_stone

/setblock 31 5 6 redstone_block

/scoreboard players set mainGame mainTimers 20

""

""

/setblock 31 5 20 redstone_block

clear @a

gamemode a @a[m=!2]

/execute @a ~ ~ ~ fill ~ ~1 ~ ~ ~1 ~ air 0 replace barrier

/scoreboard teams leave @a

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset §c§lVERY-HOT sidebarIngame

scoreboard players reset §4§lBURNING-HOT sidebarIngame

scoreboard players set §7§o(unreleased) sidebarIngame -6

/scoreboard objectives setdisplay sidebar sidebarIngame

/setblock 31 5 -23 minecraft:redstone_block

/setblock 31 5 -25 minecraft:coal_block

setblock ~ ~ ~-1 minecraft:diamond_block

/spreadplayers 88 220 10 15 false @e[tag=powerup_new]

tp @e[tag=powerup_new] ~ ~ ~-68

/scoreboard players tag @e[tag=powerup_new] remove powerup_new

/testfor @a[x=20,y=5,z=21,r=1]

/tp @a[score_leaveGame_min=1] 20 4 21 0 0

kill @e[type=item,tag=!powerup_display]

/scoreboard players tag @a[score_leaveGame_min=1] remove ON

/scoreboard players tag @a[score_leaveGame_min=1] remove Alive

/scoreboard players reset @a[score_leaveGame_min=1]

/scoreboard players test mainGame mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

setblock ~ ~ ~-1 minecraft:diamond_block

/spreadplayers 242 210 10 15 false @e[tag=powerup_new]

tp @e[tag=powerup_new] ~ ~ ~-68

/scoreboard players tag @e[tag=powerup_new] remove powerup_new

setblock ~ ~ ~1 end_stone

/setblock 31 5 6 redstone_block

/scoreboard players set mainGame mainTimers 20

/title @a title {"text":""}

/title @a subtitle {"text":""}

""

execute @a ~ ~ ~ /playsound minecraft:block.note.pling master @p ~ ~ ~ 2 1.5

setblock ~ ~ ~-1 minecraft:diamond_block

/spreadplayers 92 -2 10 15 false @e[tag=powerup_new]

tp @e[tag=powerup_new] ~ ~ ~-68

/scoreboard players tag @e[tag=powerup_new] remove powerup_new

setblock ~ ~ ~1 minecraft:end_stone

/setblock 31 5 20 redstone_block

/scoreboard players test alive stats -9999 1

/setblock 31 5 25 redstone_block

time set day

/scoreboard players test mainGame mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

/scoreboard players test roundInterval mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

setblock ~ ~ ~1 end_stone

/setblock 31 5 6 redstone_block

/scoreboard players set mainGame mainTimers 20

""

""

/title @a title {"text":"Game starts in...","color":"gold"}

/title @a subtitle {"text":"1","color":"yellow","bold":true}

execute @a ~ ~ ~ /playsound minecraft:block.note.pling master @p ~ ~ ~ 2 1

setblock ~ ~ ~1 minecraft:end_stone

/setblock 31 5 20 redstone_block

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Oh dear... "},{"selector":"@a[tag=ON]"},{"text":" exploded! Better luck next time."}]

/execute @a[tag=ON] ~ ~ ~ particle largeexplode ~ ~1 ~ 0 0 0 4

/scoreboard players tag @a[tag=ON] remove Alive

/scoreboard players tag @a[tag=ON] add Spec

execute @a[tag=ON] ~ ~ ~ playsound minecraft:entity.generic.explode master @a

/scoreboard players set roundInterval mainTimers 60

/fill 31 9 28 22 4 28 minecraft:diamond_block

/clear @a minecraft:stained_hardened_clay

/scoreboard players tag @a[tag=ON] remove ON

/clear @a minecraft:potato

/clear @a minecraft:baked_potato

/clear @a minecraft:poisonous_potato

/setblock 31 5 1 minecraft:coal_block

/setblock 31 5 -14 minecraft:redstone_block

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players set §7§oEXPLODED sidebarIngame -6

scoreboard players set §7§o(none) sidebarIngame -2

/scoreboard players test mainGame mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

setblock ~ ~ ~1 minecraft:end_stone

/setblock -56 6 -8 redstone_block

/clone -37 14 -16 -37 14 -16 -42 13 -12

/entitydata @e[tag=map_icon] {Item:{id:grass,Count:1b}}

/scoreboard players set §aVanilla sidebarLobby -2

/scoreboard players reset s§3 sidebarLobby

/scoreboard players reset §aWinter sidebarLobby

/scoreboard players reset §cEgypt sidebarLobby

setblock ~ ~ ~-1 minecraft:end_stone

tp @a 213 9 -49 90 0

/scoreboard players test roundTimer mainTimers -999 0

setblock ~ ~-1 ~1 end_stone

setblock ~ ~ ~1 end_stone

/scoreboard players set mainGame mainTimers 20

/title @a title {"text":"Game starts in...","color":"gold"}

/title @a subtitle {"text":"2","color":"yellow","bold":true}

/setblock 31 5 6 redstone_block

""

execute @a ~ ~ ~ /playsound minecraft:block.note.pling master @p ~ ~ ~ 2 1

setblock ~ ~ ~1 minecraft:end_stone

/setblock -56 6 -9 redstone_block

/clone -37 14 -17 -37 14 -17 -42 13 -12

/entitydata @e[tag=map_icon] {Item:{id:bedrock,Count:1b}}

/scoreboard players set s§3 sidebarLobby -2

/scoreboard players reset §aVanilla sidebarLobby

/scoreboard players reset §aWinter sidebarLobby

/scoreboard players reset §cEgypt sidebarLobby

setblock ~ ~ ~-1 minecraft:end_stone

tp @a 88 15.5 151 90 0

setblock ~ ~ ~1 minecraft:end_stone

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Round started, the potato(es) has been released!"}]

/setblock 31 5 20 redstone_block

/scoreboard players set @e[tag=countdownRandMain] stopThePain 150

/scoreboard players tag @r[tag=Alive] add ON

/setblock 31 5 1 minecraft:redstone_block

/execute @r[type=armor_stand,tag=powerup_on] ~ ~ ~ setblock ~ ~-1 ~ redstone_block

/setblock 31 5 -14 minecraft:coal_block

/scoreboard players test alive stats 4

/scoreboard players tag @r[tag=!ON,m=2] add ON

setblock ~ ~ ~1 end_stone

/clone -37 14 -13 -37 14 -13 -42 13 5

/scoreboard players tag @e[tag=powerup_rand] remove powerup_on

/entitydata @e[tag=powerup_icon] {Item:{id:redstone_block,Count:1b}}

/scoreboard players set §cDisabled sidebarLobby -6

/scoreboard players reset §aEnabled sidebarLobby

kill @e[tag=powerup_display]

/scoreboard players test mainGame mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

setblock ~ ~ ~1 minecraft:end_stone

/setblock -56 6 -10 redstone_block

/clone -37 14 -19 -37 14 -19 -42 13 -12

/entitydata @e[tag=map_icon] {Item:{id:snow,Count:1b}}

/scoreboard players set §aWinter sidebarLobby -2

/scoreboard players reset §aVanilla sidebarLobby

/scoreboard players reset §cEgypt sidebarLobby

/scoreboard players reset s§3 sidebarLobby

setblock ~ ~ ~-1 minecraft:end_stone

tp @a 249 20 134 0 0

/scoreboard players test roundInterval mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

/scoreboard players test endTimer mainTimers 0 0

setblock ~ ~-1 ~1 end_stone

setblock ~1 ~ ~ minecraft:diamond_block

tp @e[tag=powerupswitch1] ~-1 ~ ~

execute @e[tag=powerupswitch1] ~ ~ ~ detect ~ ~-1 ~ nether_brick 0 tp @e[tag=powerupswitch1] 30 5 -16

execute @e[tag=powerupswitch1] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ redstone_block

setblock ~ ~ ~1 end_stone

/clone -37 14 -14 -37 14 -14 -42 13 5

/scoreboard players tag @e[tag=powerup_rand] add powerup_on

/entitydata @e[tag=powerup_icon] {Item:{id:emerald_block,Count:1b}}

/scoreboard players set §aEnabled sidebarLobby -6

/scoreboard players reset §cDisabled sidebarLobby

/summon item -46 8 6 {Tags:["powerup_display"],Item:{id:feather,Count:1b},Age:-32768,PickupDelay:-1}

/summon item -49 8 4 {Tags:["powerup_display"],Item:{id:end_crystal,Count:1b},Age:-32768,PickupDelay:-1}

/summon item -48 8 7 {Tags:["powerup_display"],Item:{id:barrier,Count:1b},Age:-32768,PickupDelay:-1}

setblock ~1 ~ ~ minecraft:diamond_block

/summon minecraft:armor_stand ~ ~1 ~ {Tags:[powerup,powerup_speed,powerup_new],Invisible:1b,Marker:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:feather,Count:1b}],CustomName:Speed Buff,CustomNameVisible:1b,Small:1b}

execute @e[tag=mapSwitch] ~ ~ ~ setblock ~-6 ~-1 ~ redstone_block

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"A "},{"text":"Speed","color":"yellow"},{"text":" powerup has spawned!","color":"white"}]

setblock ~1 ~ ~ minecraft:diamond_block

/summon minecraft:armor_stand ~ ~1 ~ {Tags:[powerup,powerup_nopot,powerup_new],Invisible:1b,Marker:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:barrier,Count:1b}],CustomName:Anti-Potato Formula,CustomNameVisible:1b,Small:1b}

execute @e[tag=mapSwitch] ~ ~ ~ setblock ~-6 ~-1 ~ redstone_block

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"An "},{"text":"Anti-Potato Formula","color":"yellow"},{"text":" powerup has spawned!","color":"white"}]

setblock ~1 ~ ~ minecraft:diamond_block

/summon minecraft:armor_stand ~ ~1 ~ {Tags:[powerup,powerup_nokb,powerup_new],Invisible:1b,Marker:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:end_crystal,Count:1b}],CustomName:No Knockback,CustomNameVisible:1b,Small:1b}

execute @e[tag=mapSwitch] ~ ~ ~ setblock ~-6 ~-1 ~ redstone_block

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"A "},{"text":"No Knockback","color":"yellow"},{"text":" powerup has spawned!","color":"white"}]

setblock ~1 ~ ~ minecraft:diamond_block

/summon minecraft:armor_stand ~ ~1 ~ {Tags:[powerup,powerup_invis,powerup_new],Invisible:1b,Marker:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:experience_bottle,Count:1b}],CustomName:Invisibility,CustomNameVisible:1b,Small:1b}

execute @e[tag=mapSwitch] ~ ~ ~ setblock ~-6 ~-1 ~ redstone_block

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"An "},{"text":"Invisibility","color":"yellow"},{"text":" powerup has spawned!","color":"white"}]

setblock ~1 ~ ~ minecraft:diamond_block

setblock ~ ~ ~1 end_stone

/scoreboard players set mainGame mainTimers 20

/effect @a minecraft:blindness 4 1 true

/title @a title {"text":"Game starts in...","color":"gold"}

/title @a subtitle {"text":"3","color":"yellow","bold":true}

execute @e[tag=mapSwitch] ~ ~ ~ setblock ~ ~-1 ~1 redstone_block

/setblock 31 5 6 redstone_block

/effect @a minecraft:slowness 3 255 true

/effect @a minecraft:jump_boost 3 128 true

/effect @a minecraft:invisibility 3 1 true

/scoreboard teams join noHit @a

/fill 18 5 17 20 4 17 minecraft:diamond_block

/scoreboard players tag @a add Alive

/fill 20 4 17 18 4 17 redstone_block

execute @a ~ ~ ~ /playsound minecraft:block.note.pling master @p ~ ~ ~ 2 1

scoreboard players reset §7§oEXPLODED sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §f§lCHILLED sidebarIngame

setblock ~ ~ ~1 minecraft:end_stone

/setblock -56 6 -11 redstone_block

/clone -37 14 -18 -37 14 -18 -42 13 -12

/entitydata @e[tag=map_icon] {Item:{id:sandstone,Count:1b}}

/scoreboard players set §cEgypt sidebarLobby -2

/scoreboard players reset §aVanilla sidebarLobby

/scoreboard players reset s§3 sidebarLobby

/scoreboard players reset §aWinter sidebarLobby

setblock ~ ~ ~-1 minecraft:end_stone

tp @a 92 21 -76 180 0

setblock ~ ~ ~1 minecraft:end_stone

/scoreboard players set roundInterval mainTimers 100

/setblock 31 5 20 redstone_block

setblock ~ ~ ~1 minecraft:end_stone

execute @a[tag=!Alive] ~ ~ ~ tellraw @p [{"text":"=====================================================\n\n","strikethrough":true},{"text":"                    The winner is ","strikethrough":false,"bold":false},{"selector":"@a[tag=Alive]","strikethrough":false,"bold":true},{"text":"!!\n\n     You have collected ","strikethrough":false},{"score":{"name":"@p","objective":"powerupCollected"},"strikethrough":false},{"text":" powerups this game.\n     You started with the potato  ","strikethrough":false},{"score":{"name":"@p","objective":"forcedOn"},"strikethrough":false},{"text":" times this game.\n","strikethrough":false},{"text":"     You have transferred the potato ","strikethrough":false},{"score":{"name":"@p","objective":"potatoTransfer"},"strikethrough":false},{"text":" times this game.\n\n","strikethrough":false},{"text":"=====================================================","strikethrough":true}]

execute @a[tag=Alive] ~ ~ ~ tellraw @p [{"text":"=====================================================\n\n","strikethrough":true},{"text":"                    The winner is ","strikethrough":false,"bold":false},{"text":"YOU","strikethrough":false,"bold":true},{"text":"!!\n\n     You have collected ","strikethrough":false},{"score":{"name":"@p","objective":"powerupCollected"},"strikethrough":false},{"text":" powerups this game.\n     You started with the potato ","strikethrough":false},{"score":{"name":"@p","objective":"forcedOn"},"strikethrough":false},{"text":" times this game.\n","strikethrough":false},{"text":"     You have transferred the potato ","strikethrough":false},{"score":{"name":"@p","objective":"potatoTransfer"},"strikethrough":false},{"text":" times this game.\n\n","strikethrough":false},{"text":"=====================================================","strikethrough":true}]

/scoreboard players set endTimer mainTimers 60

/setblock 31 5 25 redstone_block

""

clear @a

""

/setblock 31 5 1 minecraft:coal_block

kill @e[tag=powerup]

/setblock 31 5 -14 minecraft:redstone_block

/scoreboard objectives setdisplay sidebar sidebarLobby

/scoreboard players tag @a remove ON

/scoreboard players reset @a powerupCollected

/scoreboard players reset @a potatoTransfer

/scoreboard players reset @a forcedOn

/setblock 31 5 -23 minecraft:coal_block

/setblock 31 5 -25 minecraft:redstone_block

gamemode a @a[m=!2,tag=!Spec]

execute @a ~ ~ ~ detect ~ ~-3 ~ barrier 0 tp @p -64.0 12.0 -3.0 -90 0

/scoreboard players test alive stats 0 1

/setblock 31 5 -23 minecraft:coal_block

setblock ~ ~1 ~ diamond_block

/scoreboard players test players stats 2

/setblock 31 5 6 redstone_block

""

/scoreboard players set @a damageDealt 0

/scoreboard players set @a damageTaken 0

/effect @a minecraft:resistance 1 10 true

/effect @a minecraft:saturation 2 10 true

/effect @a minecraft:instant_health 2 10 true

/scoreboard players remove @a[score_speedTimer_min=1] speedTimer 1

-/effect @a[score_speedTimer_min=1] minecraft:speed 0 0

/effect @a[score_speedTimer_min=60,tag=ON] minecraft:speed 3 1

/effect @a[score_speedTimer_min=60,tag=!ON] minecraft:speed 3 0 true

/scoreboard players remove @a[score_nopotTimer_min=1] nopotTimer 1

/effect @a[score_nopotTimer_min=60] minecraft:resistance 3 10

/scoreboard players remove @a[score_nokbTimer_min=1] nokbTimer 1

/replaceitem entity @a[score_nokbTimer_min=1] slot.armor.feet minecraft:golden_boots 1 1 {AttributeModifiers:[{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:1,Operation:0,UUIDLeast:520725,UUIDMost:195650}],HideFlags:7,Unbreakable:1,display:{Name:""},ench:[{id:10,lvl:1}]}

/replaceitem entity @a[score_nokbTimer=0] slot.armor.feet minecraft:air

/effect @a[score_nokbTimer_min=60] minecraft:strength 3

""

/scoreboard players remove @a[score_invisTimer_min=1] invisTimer 1

/effect @a[score_invisTimer_min=60] minecraft:invisibility 3 2

execute @e[tag=powerup_speed] ~ ~ ~ execute @a[tag=Alive,r=1] ~ ~ ~ tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@p"},{"text":" collected the ","color":"white"},{"text":"Speed Buff","color":"yellow"},{"text":" powerup.","color":"white"}]

execute @e[tag=powerup_nopot] ~ ~ ~ execute @a[tag=Alive,r=1] ~ ~ ~ tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@p"},{"text":" collected the ","color":"white"},{"text":"Anti-Potato Formula","color":"yellow"},{"text":" powerup.","color":"white"}]

execute @e[tag=powerup_nokb] ~ ~ ~ execute @a[tag=Alive,r=1] ~ ~ ~ tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@p"},{"text":" collected the ","color":"white"},{"text":"No Knockback","color":"yellow"},{"text":" powerup.","color":"white"}]

execute @e[tag=powerup_invis] ~ ~ ~ execute @a[tag=Alive,r=1] ~ ~ ~ tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@p"},{"text":" collected the ","color":"white"},{"text":"Invisibility","color":"yellow"},{"text":" powerup.","color":"white"}]

execute @e[tag=powerup] ~ ~ ~ scoreboard players add @a[r=1,tag=Alive] powerupCollected 1

execute @a[tag=Alive] ~ ~ ~ kill @e[tag=powerup,r=1]

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

tp @e[tag=powerup] ~ ~ ~ ~1 ~

/execute @e[tag=powerup_speed] ~ ~ ~ scoreboard players set @a[r=1,tag=Alive] speedTimer 200

/execute @e[tag=powerup_nokb] ~ ~ ~ scoreboard players set @a[r=1,tag=Alive] nokbTimer 200

/execute @e[tag=powerup_nopot] ~ ~ ~ scoreboard players set @a[r=1,tag=Alive] nopotTimer 200

/execute @e[tag=powerup_invis] ~ ~ ~ scoreboard players set @a[r=1,tag=Alive] invisTimer 200

""

/scoreboard players operation roundTimer mainTimers = @e[tag=countdownRandMain] stopThePain

/gamemode spectator @a[tag=Spec,m=!3]

/testfor @a[tag=Alive]

execute @a[score_talkedToVillager_min=1] ~ ~ ~ /setblock 31 5 -21 redstone_block

/scoreboard players set @a talkedToVillager 0

execute @e[tag=start_button] ~ ~ ~ teleport @e[tag=startvill] ~ ~1 ~

tp @e[tag=manual] ~ ~ ~ ~10 ~

/testfor @a

execute @a[tag=ON,score_damageDealt_min=1] ~ ~ ~ scoreboard players tag @a[score_damageTaken_min=1] add justOn

execute @r[tag=ON,score_damageDealt_min=1] ~ ~ ~ /scoreboard players tag @r[score_damageTaken_min=1] add ON

execute @r[score_damageTaken_min=1] ~ ~ ~ scoreboard players add @r[tag=ON,score_damageDealt_min=1] potatoTransfer 1

/scoreboard players tag @r[tag=ON,score_damageDealt_min=1] remove ON

/testfor @a[tag=ON]

/scoreboard players test ON stats 0 0

/scoreboard players tag @a[score_damageTaken_min=1] add ON

setblock ~ ~1 ~ diamond_block

tp @e[tag=gameCounter] ~-1 ~ ~

execute @e[tag=gameCounter] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ redstone_block

execute @e[tag=gameCounter] ~ ~ ~ detect ~ ~-1 ~ nether_brick 0 tp @e[tag=gameCounter] 31 5 4

setblock ~ ~1 ~ diamond_block

tp @e[tag=mapSwitch] ~-1 ~ ~

execute @e[tag=mapSwitch] ~ ~ ~ detect ~ ~-1 ~ nether_brick 0 tp @e[tag=mapSwitch] 30 5 9

execute @e[tag=mapSwitch] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ redstone_block

setblock ~ ~1 ~ diamond_block

tp @e[tag=roundCounter] ~-1 ~ ~

execute @e[tag=roundCounter] ~ ~ ~ detect ~ ~-1 ~ nether_brick 0 tp @e[tag=roundCounter] 30 5 16

execute @e[tag=roundCounter] ~ ~ ~ detect ~ ~-1 ~ sponge 0 tp @e[tag=roundCounter] 31 5 16

execute @e[tag=roundCounter] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ redstone_block

setblock ~ ~1 ~ diamond_block

tp @e[tag=endCounter] ~-1 ~ ~

execute @e[tag=endCounter] ~ ~ ~ detect ~ ~-1 ~ nether_brick 0 tp @e[tag=endCounter] 31 5 23

execute @e[tag=endCounter] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ redstone_block

setblock ~ ~-1 ~ diamond_block

tp @e[tag=mapSwitch] ~1 ~ ~

execute @e[tag=mapSwitch] ~ ~ ~ detect ~ ~-1 ~ nether_brick 0 tp @e[tag=mapSwitch] 27 5 9

execute @e[tag=mapSwitch] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ redstone_block

""

/replaceitem entity @a[tag=ON] slot.hotbar.0 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.1 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.2 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.3 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.4 minecraft:poisonous_potato 1 0 {display:{Name:""},ench:[{id:19,lvl:1}]}

/replaceitem entity @a[tag=ON] slot.hotbar.5 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.6 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.7 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.8 minecraft:stained_hardened_clay 1 0 {display:{Name:""}}

execute @a[tag=ON] ~ ~ ~ /particle smoke ~ ~ ~ 0.5 0.5 0.5 0.2 3

execute @a[tag=ON] ~ ~ ~ /particle smoke ~ ~ ~ 0.5 0.5 0.5 0.2 6

/replaceitem entity @a[tag=ON] slot.hotbar.8 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.7 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.6 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.5 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.4 minecraft:poisonous_potato 1 0 {display:{Name:""},ench:[{id:19,lvl:1}]}

/replaceitem entity @a[tag=ON] slot.hotbar.3 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.2 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.1 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.0 minecraft:stained_hardened_clay 1 8 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.0 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.1 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.2 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.3 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.4 minecraft:potato 1 0 {display:{Name:""},ench:[{id:19,lvl:1}]}

/replaceitem entity @a[tag=ON] slot.hotbar.5 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.6 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.7 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.8 minecraft:stained_hardened_clay 1 4 {display:{Name:""}}

execute @a[tag=ON] ~ ~ ~ /particle smoke ~ ~ ~ 0.5 0.5 0.5 0.2 9

execute @a[tag=ON] ~ ~ ~ /particle smoke ~ ~ ~ 0.5 0.5 0.5 0.2 12

/replaceitem entity @a[tag=ON] slot.hotbar.8 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.7 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.6 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.5 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.4 minecraft:potato 1 0 {display:{Name:""},ench:[{id:19,lvl:1}]}

/replaceitem entity @a[tag=ON] slot.hotbar.3 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.2 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.1 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.0 minecraft:stained_hardened_clay 1 1 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.0 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.1 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.2 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.3 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.4 minecraft:baked_potato 1 0 {display:{Name:""},ench:[{id:19,lvl:1}]}

/replaceitem entity @a[tag=ON] slot.hotbar.5 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.6 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.7 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.8 minecraft:stained_hardened_clay 1 6 {display:{Name:""}}

execute @a[tag=ON] ~ ~ ~ /particle smoke ~ ~ ~ 0.5 0.5 0.5 0.2 15

execute @a[tag=ON] ~ ~ ~ /particle smoke ~ ~ ~ 0.5 0.5 0.5 0.2 18

/replaceitem entity @a[tag=ON] slot.hotbar.8 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.7 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.6 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.5 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.4 minecraft:baked_potato 1 0 {display:{Name:""},ench:[{id:19,lvl:1}]}

/replaceitem entity @a[tag=ON] slot.hotbar.3 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.2 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.1 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/replaceitem entity @a[tag=ON] slot.hotbar.0 minecraft:stained_hardened_clay 1 14 {display:{Name:""}}

/effect @a[tag=!ON,m=2] minecraft:speed 1 0 true

/scoreboard players tag @a remove justOn

/execute @a[tag=justOn] ~ ~ ~ /playsound minecraft:entity.irongolem.attack master @p

/execute @a[tag=justOn] ~ ~ ~ /playsound minecraft:block.note.pling master @p ~ ~ ~ 2 1.4

/effect @a[tag=!ON,score_speedTimer=0] minecraft:speed 0 0

/effect @a[tag=ON] minecraft:speed 1 1 true

execute @a[tag=justOn] ~ ~ ~ tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"selector":"@r[tag=justOn]"},{"text":" has recieved the potato.","color":"white"}]

execute @a[score_fireworkTimer_min=0,score_fireworkTimer=0] ~ ~ ~ /summon fireworks_rocket ~ ~ ~ {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Flicker:1,Trail:1,Colors:[16748848],FadeColors:[16756047]}]}}}}

/scoreboard players remove @a[score_fireworkTimer_min=-1] fireworkTimer 1

/scoreboard players set @a[tag=justOn] fireworkTimer 4

/replaceitem entity @a[tag=!ON] slot.armor.head minecraft:air

/replaceitem entity @a[tag=ON] slot.armor.head minecraft:skull 1 3 {HideFlags:1,display:{Name:"§e§lPotato",Lore:["§ccan get very hot!"]},SkullOwner:{Id:"0e8a0f94-2a9d-4ec1-8700-a8148711f543",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmYzMTJhMjQzYWE0ZTY5YTVlZGM2N2U1NGU0NGY3NmViODRmNjZlYzgyNDA4OTU1N2E2NGJlYTcxZjZkYyJ9fX0="}]}},ench:[{id:10,lvl:2}]}

execute @a[tag=ON] ~ ~ ~ /particle blockcrack ~ ~1 ~ 0 0 0 0 1 normal @a 4131

execute @a[tag=ON] ~ ~ ~ /particle blockcrack ~ ~1 ~ 0 0 0 0 1 normal @a 41

execute @a[tag=ON] ~ ~ ~ /particle blockcrack ~ ~1 ~ 0 0 0 0 1 normal @a 41

/scoreboard teams leave @a[team=Potato,tag=!ON]

/scoreboard teams join Potato @a[team=!Potato,tag=ON]

/effect @a minecraft:saturation 10 2 true

/scoreboard players set @a damageTaken 0

/scoreboard players set @a damageDealt 0

tp @a[x=20,y=5,z=21,r=1] @r[tag=Alive]

/scoreboard players tag @a[x=20,y=5,z=21,r=1] remove Spec

clear @a[x=20,y=5,z=21,r=1]

tp @a[x=20,y=5,z=21,r=1] -64.0 12.0 -3.0 -90 0

/scoreboard players tag @a[score_damageDealt_min=1] add ON

/scoreboard players tag @a[x=20,y=5,z=21,r=1] add Spec

/scoreboard players test onAm operations -999 -1

/gamemode sp @a[x=20,y=5,z=21,r=1]

/scoreboard players tag @r[tag=ON] remove ON

/setblock 31 5 6 redstone_block

/scoreboard players remove mainGame mainTimers 1

/scoreboard players test onAm operations 1

/scoreboard players operation onAm operations -= itAmount gameRule

/setblock 31 5 6 redstone_block

/scoreboard players remove mainGame mainTimers 1

/scoreboard players operation onAm operations = ON stats

/setblock 23 4 16 minecraft:sponge

/scoreboard players test alive stats 2

/setblock 23 4 16 minecraft:nether_brick

scoreboard players reset §f§lCHILLED sidebarIngame

scoreboard players reset §7§lWARM sidebarIngame

scoreboard players reset §e§lWARMER sidebarIngame

scoreboard players reset §6§lHOT sidebarIngame

scoreboard players reset s§7 sidebarIngame

scoreboard players reset s§6 sidebarIngame

scoreboard players set §7§o(unreleased) sidebarIngame -6

scoreboard players reset §7§oEXPLODED sidebarIngame

/setblock 31 5 6 redstone_block

/setblock 31 5 20 redstone_block

/scoreboard players remove mainGame mainTimers 1

/scoreboard players remove roundInterval mainTimers 1

/fill 24 4 16 30 4 16 minecraft:end_stone

tellraw @a {"text":"You must have at least 2 players to start this game.","bold":true,"color":"red"}

/setblock 31 5 6 redstone_block

/setblock 31 5 20 redstone_block

/scoreboard players remove mainGame mainTimers 1

/scoreboard players remove @r[type=armor_stand,tag=countdownRand] stopThePain 1

/scoreboard players test roundTimer mainTimers 25 25

/setblock 20 9 28 redstone_block

/scoreboard players test roundTimer mainTimers 50 50

/setblock 20 8 28 redstone_block

/scoreboard players test roundTimer mainTimers 75 75

/setblock 20 7 28 redstone_block

/scoreboard players test roundTimer mainTimers 100 100

/setblock 20 6 28 redstone_block

/scoreboard players test roundTimer mainTimers 125 125

/setblock 20 5 28 redstone_block

/scoreboard players test roundTimer mainTimers 150 150

/setblock 20 4 28 redstone_block

clear @a[tag=!ON] minecraft:stained_hardened_clay

clear @a[tag=!ON] minecraft:potato

clear @a[tag=!ON] minecraft:poisonous_potato

clear @a[tag=!ON] minecraft:baked_potato

/setblock 31 5 25 redstone_block

/scoreboard players test players stats 0 1

""

scoreboard players reset §7§o(none) sidebarIngame

/scoreboard players test alive stats 8

/scoreboard players tag @r[tag=!ON,m=2] add ON

/scoreboard players add @a[tag=ON] forcedOn 1

scoreboard players reset §7§o(unreleased) sidebarIngame

tp @e[tag=roundCounter] 31 5 16

/setblock 31 5 6 redstone_block

/setblock 31 5 20 redstone_block

/setblock 31 5 25 redstone_block

/scoreboard players remove mainGame mainTimers 1

/scoreboard players remove roundInterval mainTimers 1

/scoreboard players test roundInterval mainTimers 99

/title @a actionbar {"text":"Round starting in 5 seconds..."}

tp @a -64.0 12.0 -3.0 -90 0

gamemode a @a

/fill 18 5 17 20 4 17 minecraft:diamond_block

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Round starting in 5 seconds..."}]

/fill 20 5 17 18 5 17 redstone_block

/execute @a ~ ~ ~ /playsound minecraft:block.note.snare master @p ~ ~ ~ 2 1

/scoreboard players tag @a remove Spec

/scoreboard players test roundInterval mainTimers 80 80

/title @a actionbar {"text":"Round starting in 4 seconds..."}

/scoreboard players remove endTimer mainTimers 1

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Round starting in 4 seconds..."}]

/execute @a ~ ~ ~ /playsound minecraft:block.note.snare master @p ~ ~ ~ 2 1

/scoreboard players test roundInterval mainTimers 60 60

/title @a actionbar {"text":"Round starting in 3 seconds..."}

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Round starting in 3 seconds..."}]

/execute @a ~ ~ ~ /playsound minecraft:block.note.snare master @p ~ ~ ~ 2 1

/scoreboard players test roundInterval mainTimers 40 40

/title @a actionbar {"text":"Round starting in 2 seconds..."}

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Round starting in 2 seconds..."}]

/execute @a ~ ~ ~ /playsound minecraft:block.note.snare master @p ~ ~ ~ 2 1

/scoreboard players test roundInterval mainTimers 20 20

/title @a actionbar {"text":"Round starting in 1 second..."}

tellraw @a [{"text":"[","color":"white"},{"text":"HP","color":"yellow","bold":true},{"text":"] ","color":"white","bold":false},{"text":"Round starting in 1 second..."}]

/execute @a ~ ~ ~ /playsound minecraft:block.note.snare master @p ~ ~ ~ 2 1

/scoreboard players test roundInterval mainTimers 1 1

/title @a actionbar {"text":"Round started, potato(es) released!"}